package com.mt.roll.process.vo;

import com.mt.roll.core.base.BaseVo;
import com.mt.roll.core.vo.PageVo;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Builder;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotNull;

/**
 * @Author: liguanghao
 * @Date: 2020/12/30 15:47
 * @Version 1.0
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@Builder
@ApiModel(value = "工艺设备点视图对象", description = "用于查询工艺设备点信息")
public class ProcessFlowEquipmentVo extends BaseVo implements PageVo.ConvertVo{
    /**
     * 主键，自增
     */
    @ApiModelProperty(value = "主键", required = true, example = "1")
    @NotNull(message = "ID不能为空")
    private Long id;
    /**
     * 设备ID
     */
    @ApiModelProperty(value = "设备ID", example = "0")
    @NotNull(message = "设备ID不能为空")
    private Long equipmentId;
    /**
     * 设备类型
     */
    @ApiModelProperty(value = "设备类型", example = "0")
    private Long equipmentType;
    /**
     * 设备名称
     */
    @ApiModelProperty(value = "设备名称", example = "设备名称")
    private String equipmentName;
    /**
     * 设备配方ID
     */
    @ApiModelProperty(value = "设备配方ID", example = "0")
    @NotNull(message = "设备配方ID不能为空")
    private Long equipmentRecipeId;
    /**
     * 设备配方名称
     */
    @ApiModelProperty(value = "设备配方名称", example = "设备配方名称")
    private String equipmentRecipeName;
    /**
     * 设备BomID
     */
    @ApiModelProperty(value = "设备BomID", example = "0")
    @NotNull(message = "设备BomID不能为空")
    private Long equipmentBomId;
    /**
     * 设备Bom名称
     */
    @ApiModelProperty(value = "设备Bom名称", example = "设备Bom名称")
    private String equipmentBomName;
    /**
     * 设备顺序
     */
    @ApiModelProperty(value = "设备顺序，从1开始，按从小到大排序", example = "1")
    private Long sortNo;
    /**
     * 节点类型
     */
    @ApiModelProperty(value = "节点类型,1、上片设备，2、加工设备，3、下片设备", example = "1")
    private Integer nodeType;
    /**
     * 备注
     */
    @ApiModelProperty(value = "备注", example = "0")
    private String remark;
    /**
     * 描述
     */
    @ApiModelProperty(value = "描述", example = "0")
    private String description;
    /**
     * 状态
     */
    @ApiModelProperty(value = "状态", example = "0")
    private Long enabled;
}
